package com.example.zhidao.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AdminVo {
    private String id;
    private String name;
//    private String password;
    private String img;
    private String posts;
    private int auth;
    @DateTimeFormat(pattern = "yyyy-dd HH:mm:ss") // 从前端接收数据时，需要进行的转换
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai") // 返回到前端时，需要进行的转换
    private Date createtime;
    private String token;
}
